import apibase from "./apiBase";
import axios from "axios";

//获取图形验证码
export const $getCaptcha = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/hmb/api/query/captcha',
    data: params,
    instance,
  })
}

//获取手机验证码
export const $orderSearchMobileCode = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/hmb/orderSearch/mobileCode',
    data: params,
    instance,
  });
}

//提交查询
export const $orderSearch = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.post({
    url: '/hmb/api/query/submit',
    data: params,
    instance,
  })
}

//获取保单列表
export const $getList = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/hmb/api/query/getList',
    data: params,
    instance,
  })
}

//获取保单详情
export const $getDetail = (params:any) => {
  const $server = new apibase();
  const instance = axios.create();
  return $server.get({
    url: '/hmb/api/query/detail',
    data: params,
    instance,
  })
}


